package org.example.lotterysystem.service;

import org.example.lotterysystem.controller.param.UserLoginParam;
import org.example.lotterysystem.controller.param.UserRegisterParam;
import org.example.lotterysystem.service.dto.UserDTO;
import org.example.lotterysystem.service.dto.UserLoginDTO;
import org.example.lotterysystem.service.dto.UserRegisterDTO;
import org.example.lotterysystem.service.dto.UserSendCodeDTO;
import org.example.lotterysystem.service.enmus.UserIdentityEnum;

import java.util.List;

public interface UserService {
    /**
     * 注册
     * @param param
     * @return
     */
    UserRegisterDTO register(UserRegisterParam param);

    /**
     * 登录
     * @param param
     * @return
     */
    UserLoginDTO login(UserLoginParam param);

    UserSendCodeDTO sendCode(String phoneNumber);


    /**
     * 查询人员列表
     * @param userIdentityEnum
     * @return
     */
    List<UserDTO> findUserInfo(UserIdentityEnum userIdentityEnum);
}

